package com.icode.gulimall.search.vo;

import lombok.Data;
import org.springframework.util.StringUtils;

import java.util.List;

/**
 * @Author: my_code
 * @Email: my_code@foxmail.com
 * @Create: 2020-12-17 18:18
 *
 * 封装页面所有传递过来的查询条件
 */
@Data
public class SearchParam {

    private String keyword;//页面传递过来的全文匹配关键字

    private Long catalogId;//三级分类id

    //排序  降序: desc  升序: asc
    //sort=saleCount_asc/desc
    //sort=salePrice_asc/desc
    //sort=salesScore_asc/desc
    private String sort;//排序条件

    private Integer hasStock;//是否有库存 0:没有 1:有

    private  String skuPrice;//价格区间   0_1000/_1000/1000_

    private List<Long> brandIds;//按照品牌进行查询

    private List<String> attrs;//按照属性进行筛选   attrs=2_5寸;2_6寸

    private Integer pageNum = 1;//页码

    private String _queryString;//原生的所有查询条件
}
